package com.sample.transaction.atomikos.db1.service;

import com.sample.transaction.atomikos.db1.entity.User1;

import java.util.List;
import java.util.Optional;

public interface User1Service {

    Optional<User1> findById(int id);

    User1 findByCode(String code);

    List<User1> findAllUserByPage(int page, int size);

    User1 updateUser(User1 user, boolean throwEx);

    void deleteUser(int id);
}
